<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>

function sex(){
        this.type = '男'
    }
    
    function Ren(name,age){

        this.name = name;
        this.age = 20;
        this.say = function(){
            console.log(this.name);
        }
    }
    Ren
    Ren.type = '人'
    Ren.prototype.san = function(){
        console.log(this.name);
    }

    // new Ren 实例
    let a =new Ren('老张',20)
    console.log(a);
 


</script>